Update Copyright Header¶
Steps to update copyright headers:
Define scopes to apply the copy right header to:
Open properties Ctrl Alt S and search for
Scopes
Select packages for the scope and click
Include Recursively
Apply copyright settings to Scope:
Open properties
ctrl alt s
and search forCopyright
Add copyright entry and apply previously created scope
Create copyright profile:
Open Settings/Editor/Copyright/’Copyright Profiles’
Add copyright text without borders
Set Copyright year dynamically with
${today.year}
Add copyright regex (Acquired by selecting the copyright header in intellij editor and pressing
ctrl shift f
)Allow replacing old copyright identified by regex seems not to work
Adjust copyright formatting settings
Open Settings/Editor/Copyright/Formatting
Change to
Use block comments
withPrefix each line
, setRelative Location
toBefore other comments
and increaseSeparator before/after Length
to81
Delete previous copyright header manually (Replace with empty String)
Right click package and choose
Update Copyright..
Check files for duplicated copyright header (occurs if copyright regex not set correctly)